<template>
	<view class="container">
		<view class="" style="display: flex;align-items: center;margin-top: 0px;">
			<view class="tag">标题：</view>
			<uni-easyinput v-model="user.title" placeholder="请输入标题" />
		</view>
		<view class="" style="display: flex;margin-top: 20px;">
			<view class="tag">内容：</view>
			<view class="" style="display: flex;flex-direction: column;flex: 1;">
				<uni-easyinput maxlength="100" v-model="user.content" type="textarea" placeholder="最多100个字" />
				
			</view>
		</view>
		<button type="primary" @click="submit" style="margin-top: 20px;">提交</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				user: {
					"title": "",
					"content": ""
				}
			};
		},
		onLoad(item) {

		},
		onReady() {

		},
		onShow() {

		},
		methods: {
			submit() {
				this.isEmpty(this.user)
				this.post('/prod-api/api/common/feedback', this.user).then(res => {
					uni.showToast({
						title: res.msg,
						icon: 'none'
					});
				})
			}
		}
	};
</script>

<style lang="scss">
	page {
		background-color: white;
	}
</style>
